<template>
	<el-time-picker
    value-format="HH:mm"
    format="HH:mm"
    v-model="value"
    @change="valueChange">
  </el-time-picker>
</template>

<script>
  export default {
  	props:{
  		defaultVal:{
  			type:String,
  			default:""
  		}
  	},
  	methods:{
  		valueChange(value){
  			this.$emit("value-change",value);
  		}
  	},
    data() {
      return {
        value: ''
      }
    },
    created(){
    	this.value = this.defaultVal;
    }
  }
</script>

<style>
	
</style>